package com.docking.heylo.dao.mapper;

import com.docking.heylo.dao.entity.PostTag;
import com.docking.heylo.dao.entity.PostTagExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface PostTagMapper {
    long countByExample(PostTagExample example);

    int deleteByExample(PostTagExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(PostTag record);

    int insertSelective(PostTag record);

    List<PostTag> selectByExample(PostTagExample example);

    PostTag selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") PostTag record, @Param("example") PostTagExample example);

    int updateByExample(@Param("record") PostTag record, @Param("example") PostTagExample example);

    int updateByPrimaryKeySelective(PostTag record);

    int updateByPrimaryKey(PostTag record);

    void batchSavePostTag(@Param("aite") int[] aite, @Param("userId") int userId, @Param("postId") Integer postId);


    List<Map<String,Object>> selectComments(@Param("userId") int userId,@Param("postId") Integer postId);


    List<Map<String,Object>> tagForUser(@Param("informationId") Integer informationId);
}